package cn.ekuma.pos.pda.qkorder;

import java.util.ArrayList;
import java.util.List;

import com.openbravo.bean.erp.OrderLine;

import android.content.Context;
import android.text.Html;
import cn.ekuma.data.ui.android.AbstractViewBeanListAdapter;
import cn.ekuma.epos.bean.util.erp.OrderLineHelper;


public class OrderLineListAdapter extends AbstractViewBeanListAdapter<OrderLine> {

	public OrderLineListAdapter(Context context){
		super(context, new ArrayList());
	}
	
	public OrderLineListAdapter(Context context, List<OrderLine> objects) {
		super(context, objects);
	}

	@Override
	public String cracteBaseBeanToShowText(OrderLine obj) {
		return Html.fromHtml(OrderLineHelper.getText(obj)).toString();
	}
}
